#include "FileOb.h"

ImageFile::ImageFile()
{
	_path = "\0";
}

ImageFile::~ImageFile()
{

}

void ImageFile::SetPath(string path)
{
	_path = path;
}

void ImageFile::Show()
{
	ShowImage(_path);
}

ImageFileExt::ImageFileExt(Viewer* viewer) : _viewer(viewer)
{
	_path = "\0";
}

ImageFileExt::~ImageFileExt()
{
	if (_viewer) delete _viewer;
}

void ImageFileExt::SetPath(string path)
{
	_path = path;
}

void ImageFileExt::Show()
{
	_viewer->ShowImage(_path);
}